package com.woniuxy.service.impl;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.woniuxy.entity.Client;
import com.woniuxy.entity.Salesman;
import com.woniuxy.mapper.ClientMapper;
import com.woniuxy.mapper.SalesmanMapper;
import com.woniuxy.service.ClientService;
import com.woniuxy.service.SalesmanService;

@Service
public class SalesmanServiceImpl implements SalesmanService{

	@Autowired
	private SalesmanMapper salesmanMapper;
	
	@Override
	public List<Salesman> findAllSalesmans() {
		return salesmanMapper.findAllSalesmans();
	}

	@Override
	public int addSalesman(Salesman salesman) {
		return salesmanMapper.addSalesman(salesman);
	}

	@Override
	public Salesman findSalesmanBySid(int sid) {
		return salesmanMapper.findSalesmanBySid(sid);
	}

	@Override
	public int modifySalesman(Salesman salesman) {
		return salesmanMapper.modifySalesman(salesman);
	}

	@Override
	public int deleteDataBySid(int sid) {
		return salesmanMapper.deleteDataBySid(sid);
	}
}
